
<?php
define("_needlogin", "1");
define("_access", "1");
include_once("../include/db.config.php"); 
$chalId = (int)$_GET['chalId'];
$sql = "SELECT id,name from team where FIND_IN_SET('$chalId',solves)";
$r = array();
$r['teams'] = getAll($sql);

//var_dump($r);

echo json_encode($r);